<template>
  <el-container>
    <div class="regesiter">
      <h2>
        <span>注册</span>
      </h2>
      <div class="form-area">
        <div class="form-item">
          <input type="text" placeholder="账号" />
        </div>
        <div class="form-item">
          <input
            type="password"
            placeholder="密码（6-16个字符组成，区分大小写）"
          />
        </div>

        <div class="form-item clearfix">
          <div class="select">
            <div class="select-item">
              <div class="title">中国大陆</div>
              <ul>
                <li>Lorem.</li>
                <li>Praesentium!</li>
                <li>Excepturi!</li>
                <li>Voluptatibus.</li>
                <li>Iusto?</li>
                <li>Ratione.</li>
                <li>Laboriosam?</li>
                <li>Facere!</li>
                <li>Et?</li>
                <li>Provident!</li>
                <li>Lorem.</li>
                <li>Quam?</li>
                <li>Consequuntur!</li>
                <li>Veniam?</li>
                <li>Assumenda?</li>
                <li>Perferendis?</li>
                <li>Eveniet.</li>
                <li>Doloribus?</li>
                <li>Nostrum!</li>
                <li>Officia.</li>
              </ul>
            </div>
          </div>
          <div class="input">
            <input type="text" placeholder="填写常用的手机号" />
          </div>
        </div>

        <div class="form-item">
          <div>
            <input type="text" />
          </div>
          <button class="btn-sncode">点击获取</button>
        </div>

        <div class="readme">
          <label for="">
            <input type="checkbox" style="vertical-align: -2px" />
            <span
              >我已同意 <a href=""> 《哔哩哔哩弹幕网用户使用协议》</a>和
              <a href="">《哔哩哔哩弹幕网账号中心规范》</a>
            </span>
          </label>
        </div>

        <div class="form-item">
          <button class="fill">注册</button>
        </div>

        <div class="readme txtright">
          <a href="">已有帐号，直接登录&gt;</a>
        </div>
      </div>
    </div>
  </el-container>
</template>
<style scoped>
.top {
  height: 40px;
}
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}
.regesiter {
  width: 980px;
  margin: 90px auto;
  padding: 60px 40px;
  background-color: white;
  border-radius: 5px;
}
.regesiter a {
  color: #00a1d6;
}
.regesiter h2 {
  font-size: 38px;
  border-bottom: 1px solid #ddd;
  height: 20px;
  margin-bottom: 50px;
}
.regesiter h2 span {
  background-color: #fff;
  padding: 0 10px;
}
.form-area {
  width: 423px;
  margin: 0 auto;
}
.form-area .form-item {
  margin: 50px 0;
  position: relative;
}
.form-area .form-item .select,
.form-area .form-item .input {
  float: left;
  height: 40px;
}
.form-area .form-item .select .select-item {
  height: 40px;
  width: 140px;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 3px 0 0 3px;
  border-right: 0;
  position: relative;
}
.form-area .form-item .select .select-item ul {
  display: none;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  box-sizing: border-box;
  width: 100%;
  height: 256px;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 42px;
  overflow: auto;
  padding-top: 10px;
  color: #606266;
  font-size: 14px;
}
.form-area .form-item .select .select-item ul li {
  height: 40px;
  line-height: 40px;
  text-align: left;
  padding-left: 10px;
}
.form-area .form-item .select .select-item ul li:hover {
  background-color: #f5f7fa;
}
.form-area .form-item .select .select-item .title {
  line-height: 40px;
  height: 40px;
  padding: 0 10px;
  color: #909399;
  cursor: pointer;
  text-align: left;
}
.form-area .form-item .input {
  width: 283px;
}
.form-area .form-item .input input {
  border-radius: 0 3px 3px 0;
}
.form-area .form-item .btn-sncode {
  width: 130px;
  height: 36px;
  position: absolute;
  right: 2px;
  top: 2px;
}
.form-area .readme {
  margin: -40px 0;
  font-size: 12px;
}
/* 统一的文本框样式 */
input[type='text'],
input[type='password'] {
  border: 1px solid #dcdfe6;
  width: 100%;
  height: 40px;
  border-radius: 3px;
  padding: 0 10px;
  color: #606266;
  font-size: 14px;
  text-indent: 1em;
  box-sizing: border-box;
  font-family: 'PingFangSC-Medium';
}
input[type='text']:hover,
input[type='password']:hover {
  border-color: #c0c4cc;
}
input[type='text']::placeholder,
input[type='password']::placeholder {
  color: #ccc;
}
input[type='text']:focus,
input[type='password']:focus {
  outline: none;
  border-color: #00a1d6;
}
/* 统一设置样式 */
button {
  height: 40px;
  background: #00a1d6;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  border: 1px solid #d9d9d9;
  cursor: pointer;
}
.txtright {
  text-align: right;
}
button:hover {
  background: #33b4de;
}

button.fill {
  width: 100%;
  box-sizing: border-box;
}
button:disabled {
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.25);
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  cursor: not-allowed;
}
</style>
